package the.workshop.bu.service.impl;

import org.springframework.transaction.annotation.Transactional;
import the.workshop.bu.entity.CustomerTax;
import the.workshop.bu.mapper.CustomerTaxMapper;
import the.workshop.bu.service.ICustomerTaxService;
import org.wisteria.framework.web.mvc.service.AbstractSuperService;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * <p>
 * 客户与纳税 服务实现类
 * </p>
 *
 * @author lei.liu
 * @since 2020-07-06
 */
@Service
public class CustomerTaxServiceImpl extends AbstractSuperService<CustomerTaxMapper, CustomerTax> implements ICustomerTaxService {


    @Transactional(rollbackFor = Exception.class)
    @Override
    public void deleteByCustomerId(Integer customerId, String modifiedId, String modifiedName) {
        baseMapper.deleteByCustomerId(customerId, new Date(), modifiedId, modifiedName);
    }
}
